Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 12: Inlining Files

../ch12/12fig02.gif
Figure 12.2

A row of archways built by inlining one archway from ╥arch.wrl╙ and repeatedly instancing it.

12fig02.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        DEF Arch Inline {
            bboxSize   5.0 8.0 2.0
            bboxCenter 1.0 4.0 0.0
            url "arch.wrl"
        },
        Transform {
            translation 0.0 0.0 -2.0
            children USE Arch
        },
        Transform {
            translation 0.0 0.0 -4.0
            children USE Arch
        },
        Transform {
            translation 0.0 0.0 -6.0
            children USE Arch
        },
        Transform {
            translation 0.0 0.0 -8.0
            children USE Arch
        }
    ]
}